const { ipcRenderer } = require('electron')
const minibt = document.querySelector('#minibt')
minibt.addEventListener('click', () => {
    ipcRenderer.send('minimize')
})
const closebt = document.querySelector('#closebt')
closebt.addEventListener('click', () => {
    ipcRenderer.send('close')
})


const WebSocket =require('ws')
const ws = new WebSocket('ws://localhost:8002')